home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / misc / gnuplot-3.7src.lha / gnuplot-3.7src / gnuplot-3.7.lha / gnuplot-3.7 / docs / toc_entr.sty < prev    next >
Text File  |  1998-04-15  |  3KB  |  102 lines

  1. %
  2. % $Id: toc_entr.sty,v 1.4 1996/09/15 13:07:39 drd Exp $
  3. %
  4. %
  5. %
  6. % TOC_ENTRY.STY of 13 Dec 90
  7. % written by Stefan Timphus
  8. %
  9. % Will produce the right space for sectionnumbers in the tableofcontents
  10. % Necessary for entries where the number for each kind of section
  11. % is greater 10 (e.g. "12.14.18 Sectionname")
  12. % When using the original definition the first letter of the sectionname
  13. % overwrites the last number of the sectionnumber
  14. %
  15. % call adjustments with command \adjustSTYLENAME
  16. %
  17. % article.sty modified by RCC (1 May 96) to add another subsection level
  18.  
  19. \typeout{`toc_entry.sty' 1.0 of 13 Dec 90}
  20.  
  21. %
  22. % HERE ARE THE ORIGINAL DEFINITIONS
  23. %
  24.  
  25. % article.sty
  26. %
  27. %\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
  28. %\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
  29. %\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
  30. %\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
  31.  
  32. % report.sty and book.sty
  33. %
  34. %\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
  35. %\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
  36. %\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
  37. %\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
  38. %\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
  39.  
  40. %
  41. % MODIFICATIONS
  42. %
  43.  
  44. \newlength{\twonum}
  45.         \settowidth{\twonum}{99.99.}
  46. \newlength{\threenum}
  47.         \settowidth{\threenum}{99.99.99.}
  48. \newlength{\fournum}
  49.         \settowidth{\fournum}{99.99.99.99.}
  50. \newlength{\fivenum}
  51.         \settowidth{\fivenum}{99.99.99.99.99.}
  52. \newlength{\sixnum}
  53.         \settowidth{\sixnum}{99.99.99.99.99.99.}
  54.  
  55. \newcommand{\adjustarticle}
  56. {\def\l@subsection{\@dottedtocline{2}{1.5em}{\twonum}}
  57. \def\l@subsubsection{\@dottedtocline{3}{4.0em}{\threenum}}
  58. \def\l@paragraph{\@dottedtocline{4}{7.8em}{\fournum}}
  59. \def\l@subparagraph{\@dottedtocline{5}{10.4em}{\fivenum}}}
  60.  
  61. \newcommand{\adjustreport}
  62. {\def\l@section{\@dottedtocline{1}{1.5em}{\twonum}}
  63. \def\l@subsection{\@dottedtocline{2}{4.0em}{\threenum}}
  64. \def\l@subsubsection{\@dottedtocline{3}{7.8em}{\fournum}}
  65. \def\l@paragraph{\@dottedtocline{4}{10.4em}{\fivenum}}
  66. \def\l@subparagraph{\@dottedtocline{5}{12.6em}{\sixnum}}}
  67.  
  68. \newcommand{\adjustbook}{\adjustreport}
  69.  
  70. \newcommand{\subsubsubsection}[1]{\paragraph{#1}}
  71. % end of TOC_ENTRY.STY
  72.  
  73.  
  74. %
  75. % PROPOSED MODIFICATIONS
  76. %
  77. % remove:
  78. %
  79. %\newcommand{\subsubsubsection}[1]{\paragraph{$1}}
  80. % change:
  81. %
  82. %\newcommand{\adjustarticle}
  83. %{\def\l@subsection{\@dottedtocline{2}{1.5em}{\twonum}}
  84. %\def\l@subsubsection{\@dottedtocline{3}{4.0em}{\threenum}}
  85. %\def\l@subsubsubsection{\@dottedtocline{3}{7.8em}{\fournum}}
  86. %\def\l@paragraph{\@dottedtocline{4}{10.4em}{\fivenum}}
  87. %\def\l@subparagraph{\@dottedtocline{5}{12.6em}{\sixnum}}}
  88. % add:
  89. %
  90. %\setcounter{secnumdepth}{5}
  91. %\setcounter{tocdepth}{5}
  92. %
  93. %\def\subsubsubsection{\@startsection{subsubsubsection}{3}{\z@}{-3.25ex plus 
  94. %-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
  95. %
  96. %\newcounter {subsubsubsection}[subsubsection]
  97. %
  98. %\def\thesubsubsubsection {\thesubsubsection .\arabic{subsubsubsection}}
  99. %
  100.